<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<LINK rel=stylesheet type=text/css href="../css/style.css">
<script type="text/javascript" src="../scripts/jquery-1.8.3.js"></script>
<script type="text/javascript">
	$(function() {
		
	});
	function checkDelect(_this){
		if(confirm("是否删除该信息？"))
			location.href = _this;
	}
	function checkUpdate(_this){
		location.href = _this;
	}
</script>
<title>青鸟租房 - 用户管理</title>
</head>
<BODY>
	<DIV id=header class=wrap>
		<DIV id=logo>
			<IMG src="../images/logo.gif">
		</DIV>
		<DIV class=search>
			<LABEL class="ui-green searchs"><a
				href="getAllTypes.do?users=${sessionScope.users}&opr=fabu" title="">发布房屋信息</a>
			</LABEL> <LABEL class=ui-green><INPUT
				onclick='document.location="/SSM_house/page/login.jsp"' value="退       出"
				type=button name=search>
			</LABEL>
		</DIV>
	</DIV>
	<DIV class="main wrap">
		<DIV id=houseArea>
			<TABLE class=house-list>
				<TBODY>
					<c:forEach items="${sessionScope.houseList}" var="house">
					<TR>
						<TD class=house-thumb><SPAN><A href="details.htm"
								target="_blank"><img src="../images/thumb_house.gif"
									width="100" height="75" alt="">
							</A>
						</SPAN>
						</TD>
						<TD>
							<DL>
								<DT>
									名称：<A href="getAllTypes.do?id=${house.h_id}&opr=details" target="_blank">${house.h_title}</A>
								</DT>
								<DD>
									${house.d_name}${house.s_name},${house.h_floorage}平米<BR>联系方式：${house.h_contact}
								</DD>
							</DL>
						</TD>
						<TD class=house-type><LABEL class=ui-green>
							<INPUT onclick="checkUpdate('update.do?opr=update&id=${house.h_id}')" value="修    改" type=button name=search>
						</LABEL>
						</TD>
						<TD class=house-price><LABEL class=ui-green>
							<INPUT value="删    除" type=button name=search onclick="checkDelect('delete.do?id=${house.h_id}')"/>
						</LABEL>
						</TD>
					</TR>
					</c:forEach>
				</TBODY>
			</TABLE>
		</DIV>
		<DIV class=pager>
			<UL>
				<c:forEach items="${sessionScope.yeshu}" var="i">
				<LI class=current><A id=widget_338868862
					href="gethouseList.do?dijiye=${i}&opr=guanli"
					parseContent="true" showError="true" targets="houseArea"
					ajaxAfterValidation="false" validate="false"
					dojoType="struts:BindAnchor">${i}</A></LI>
				</c:forEach>
			</UL>
			<SPAN class=total>${sessionScope.pageIndex}/${sessionScope.total}页</SPAN>
		</DIV>
	</DIV>
	<DIV id=footer class=wrap>
		<DL>
			<DT>青鸟租房 © 2010 北大青鸟 京ICP证1000001号</DT>
			<DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD>
		</DL>
	</DIV>
</BODY>
</HTML>

